﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DeviceMaintainGIS.Model
{
    /// <summary>
    /// 集合数据模型
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ReturnListVM<T> : ReturnMessageVM
    {
        public ReturnListVM()
        {
            Succeed = true;
            ErrorCode = "";
            Message = "";
        }
        /// <summary>
        /// 当前页数
        /// </summary>
        public int PageIndex { get; set; }
        /// <summary>
        /// 当先显示多少条
        /// </summary>
        public int PagesSize { get; set; }
        /// <summary>
        /// 一共多少条
        /// </summary>
        public int TotalCount { get; set; }
        
        /// <summary>
        /// 集合
        /// </summary>
        public List<T> List { get; set; }
    }
    /// <summary>
    ///  集合数据模型
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ReturnVM<T> : ReturnMessageVM
    {
        public ReturnVM()
        {
            Succeed = true;
            ErrorCode = "";
            Message = "";
        }
        /// <summary>
        /// 集合
        /// </summary>
        public T obj { get; set; }
    }
}
